package com.example.demo.day.config.learn.design.bridge.x1;

public class x1Test {
    public static void main(String[] args) {
        Additive sugar = new Sugar();
        Additive matcha = new Matcha();

        Cup cup1 = new LargeCup();
        cup1.setAdditive(sugar);
        System.out.println(cup1.getInfo());
//        cup1.getInfo();
    }
}
